import type { IList, IResult } from "@/types/common";
import { getAxios, commonAxiosJson } from "@/utils/request.js";
/* 投资商资金记录 地址 */
const url = "/back/investor-money-log";

/* 获取投资商资金列表 */
export const getInvestorMoneyLogInfo = <T, D>(params?: D): Promise<IResult<IList<T>>> => {
  return getAxios<IList<T>, D>(url, params);
};
/* 新增投资商资金记录 */
export const postInvestorMoneyLogInfo = <T, D>(params: D): Promise<IResult<T>> => {
  return commonAxiosJson<T, D>(url, params, "POST");
};
/* 投资商资金 统计数据 */
export const getInvestorMoneyLogCountInfo = <T, D>(params?: D): Promise<IResult<IList<T>>> => {
  return getAxios<IList<T>, D>(url + "/investor-money-data", params);
};
